package com.infocollect.project.api.ui;


import com.infocollect.project.api.entity.TappActOperatePermissionEntity;
import com.infocollect.project.form.vo.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * (TappActoperatepermission)表控制层
 *
 * @author makejava
 * @since 2019-12-25 10:32:28
 */
@Api(value = "tappActoperatepermission", tags = "节点操作权限信息")
@RestController
@RequestMapping("tappActoperatepermission")
public class TappActoperatepermissionController {
    /**
     * 服务对象
     */
    @Resource
    private com.infocollect.project.api.service.ITappActOperatePermissionService ITappActOperatePermissionService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @ApiOperation("获取操作权限")
    @GetMapping("selectOne")
    public R<TappActOperatePermissionEntity> selectOne(Long id) {
        return R.newOk( this.ITappActOperatePermissionService.queryById(id));
    }

}